package com.fish.gaiety.gateway.controller;

import com.fish.gaiety.gateway.controller.info.GenericPOJOController;
import com.fish.gaiety.gateway.entity.UserApi;
import com.fish.gaiety.gateway.entity.dto.User;
import com.fish.gaiety.gateway.service.GenericPOJOService;
import com.fish.gaiety.gateway.service.UserService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Jerry
 * @date 2022/9/30
 * @description User Controller
 */
@RestController
@RequestMapping("/user")
@RequiredArgsConstructor
public class UserController extends GenericPOJOController<User, Long, UserApi> {

    private final UserService userService;

    @Override
    protected GenericPOJOService<User, Long, UserApi> getService() {
        return userService;
    }
}
